import http from "http";

let port = process.env.PORT || 3000;
const server = http.createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'text/html' });
  res.end("<h1>Hello, World!</h1>");
});

server.listen(port, () => console.log(`Server started on port ${port};\n`,
"press Ctrl - C to terminate..."));